<%--
  Created by IntelliJ IDEA.
  User: SYHT
  Date: 2017/8/18
  Time: 11:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="myPage" uri="/xianzhiOA/pageTag" %>
<%@ taglib prefix="age" uri="/xianzhipt/ageTag" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--解析表达式--%>
<%@ page isELIgnored="false" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <jsp:include page="dist.jsp"/>
</head>

<body>
<div class="all">
    <jsp:include page="foreEnd.jsp"/>

    <div class="center">
        <jsp:include page="nav.jsp"/>
        <!--内容-->
        <div class="right" id="all_right">
            <!--<div class="allblue">-->
            <!--<h4>业务总览</h4>-->
            <!--</div>-->

            <form action="${pageContext.request.contextPath}/Postion/selectAll.emp" class="big" id="f1">
                <div class="every_top">
                    <h3>招聘中心</h3> <span>公司管理</span> &nbsp;/ &nbsp;<span>职位管理</span>

                </div>
                <div style="font-size: 14px">

                </div>
                <div class="all_select">
                    <select name="postionWelfare" class="all_input">
                        <option value="">请选择</option>
                        <option <c:if test="${postionWelfare=='1'}">selected</c:if> value="1">审核中</option>
                        <option <c:if test="${postionWelfare=='2'}">selected</c:if> value="2">审核未通过</option>
                        <option <c:if test="${postionWelfare=='3'}">selected</c:if> value="3">正在招聘</option>
                        <option <c:if test="${postionWelfare=='4'}">selected</c:if> value="4">暂停</option>
                        <option <c:if test="${postionWelfare=='5'}">selected</c:if> value="5">结束</option>
                    </select>

                    <%--<input type="text" class="all_input" placeholder="按什么搜索">--%>
                    <%--<input type="text" class="all_input" placeholder="按什么搜索">--%>
                    <%--<input type="text" class="all_input" placeholder="按什么搜索">--%>
                    <button class="all_button" type="submit">搜索</button>
                </div>

                <div class="allform">

                    <table class="table-fix table table-striped">
                        <thead>
                        <tr>
                            <th width="120">职位名</th>
                            <th width="120">审核状态</th>
                            <th width="120">最低月薪</th>
                            <th width="120">最高月薪</th>
                            <th width="120">工作地点</th>
                            <th width="120">刷新时间</th>
                            <th width="120">学历要求</th>
                            <th width="120">经验要求</th>
                            <th width="150">操作</th>
                        </tr>
                        </thead>

                        <tbody>
                        <c:forEach items="${postionList}" var="po">
                        <tr>
                            <td class="ww">${po.postionName}</td>
                            <td class="ww">${po.postionWelfare eq 0?"草稿":''}${po.postionWelfare eq 1?"审核中":''}
                                    ${po.postionWelfare eq 2?"未通过":''}${po.postionWelfare eq 3?"正在招聘":''}
                                    ${po.postionWelfare eq 4?"暂停":''}${po.postionWelfare eq 5?"结束":''}
                            </td>
                            <td class="ww">
                            <c:if test="${po.postionMm==-1}">
                                面议
                            </c:if>
                                <c:if test="${po.postionMm!=-1}">
                                    ${po.postionMm}
                                </c:if>
                            </td>
                            <td class="ww">${po.postionYm}</td>
                            <td class="ww">${po.postionSpace}</td>
                            <td class="ww"><fmt:formatDate value="${po.postionTime}" pattern="yyyy-MM-dd" /></td>
                            <td class="ww">${po.postionEducation}</td>
                            <td class="ww">${po.postionExp}</td>
                            <td class="ww">
                                <a href="${pageContext.request.contextPath}/Postion/selectByPrimaryKey1.emp?postionId=${po.postionId}" class="all_a" target="view_window">详情</a>
                                <a href="${pageContext.request.contextPath}/Postion/selectByPrimaryKey2.emp?postionId=${po.postionId}" class="all_a" target="view_window">修改</a>
                                <a href="#" class="all_a">删除</a></td>
                        </tr>
                        </c:forEach>

                        </tbody>
                    </table>
                </div>



            <!--分页符-->
            <ul class="pagination">
                <%--<li><a href="#" class="a">&laquo;</a></li>--%>
                <%--<li class="active"><a href="#">1</a></li>--%>
                <%--<li><a href="#">2</a></li>--%>
                <%--<li><a href="#">3</a></li>--%>
                <%--<li><a href="#">4</a></li>--%>
                <%--<li><a href="#">5</a></li>--%>
                <%--<li><a href="#">&raquo;</a></li>--%>
                    <input id="infPage" type="hidden" name="page" value="${page}">
                    <myPage:paging length="8" page="${page}" pages="${pages}"/>
            </ul>
            </form>
        </div>


    </div>
</div>

<script src="${pageContext.request.contextPath}/dist/backEnd3/js/tab.js"></script>
<script>
    function pToSub(page) {
        var infpage = parseInt(document.getElementById("infPage").value);
        if (page != infpage && page - infpage > 0 || page != infpage && page - infpage < 0) {
            document.getElementById("infPage").value = page;
            document.getElementById("f1").submit();
        }
    }
</script>
<script>
    $(function () {
        $('#collapseFour').addClass("panel-collapse collapse in");
        $(".all_center").css("display", "block");     //显示二级导航条
        changeTab5();                               //显示对应二级导航条内容
        $(".center_btn2").css({left: '-50px'});
        $(".center_btn").css({left: '100px'});
        $(".all_center").css({left: '0'});
        $("#all_right").css({left: '110px'});
    });
</script>
</body>
</html>